package mmc.server.shell.ops.baseops;

import mmc.server.shell.*;
import mmc.server.shell.ops.Operation;
import mmc.server.shell.ops.PriorityType;

public class GreaterThan extends Operation {

    public GreaterThan(String text) throws ShellException {
        super(text, ">", true, true);
    }

    @Override
    public double execute() {
        return lValue.execute() > rValue.execute() ? 1 : 0;
    }
    
    public static PriorityType getPriorityType() {
        return PriorityType.COMPARISON;
    }
    
    public static String getDescription(){
    	return formatHelpString(">","greater than");
    }
}
